import 'package:exams_app/gen_a/A.dart';
import 'package:exams_app/widget/hexcolor.dart';
import 'package:flutter/cupertino.dart';
import 'live_logic.dart';
import 'package:get/get.dart';
class JiangShiPage extends StatefulWidget {


  // var name;
  // var zhiwei;
  // var jieshao;
  //
  // JiangShiPage(this.name,this.zhiwei,this.jieshao);

  @override
  _JiangShiPageState createState() => _JiangShiPageState();
}

class _JiangShiPageState extends State<JiangShiPage> {

  LiveLogic logic = Get.put(LiveLogic());
  @override
  void initState() {
    logic.requestDataWithListLive();
    // TODO: implement initState
    super.initState();
  }
  @override
  Widget build(BuildContext context) {
    
    return GetBuilder<LiveLogic>(
     builder: (logic) {
       return Container(

      padding: EdgeInsets.only(left: 15,top:0),
      child: ListView(
        children: [

          Container(
            margin: EdgeInsets.only(top: 11),
            child: Row(
              // mainAxisAlignment: MainAxisAlignment.start,
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                // Image.asset(A.assets_kecheng_icon,width: 25,height: 25,),
                SizedBox(width: 5,),
               Container(

                 child:  Column(
                   crossAxisAlignment: CrossAxisAlignment.start,
                   children: [
                     Container(
                       margin: EdgeInsets.only(bottom: 5),
                         child: Text('培训讲师:${logic.liveList[0]['name']}',style: TextStyle(fontSize: 14,color: HexColor('#333333'),fontWeight: FontWeight.w500),)),
                     Container(
                         margin: EdgeInsets.only(bottom: 5),
                         child: Text('职位:${logic.liveList[0]['function']}',style: TextStyle(fontSize: 12,color: HexColor('#999999'),))),
                     Container(
                         margin: EdgeInsets.only(bottom: 5),
                         child: Text('${logic.liveList[0]['describe']}',style: TextStyle(fontSize: 12,color: HexColor('#999999'),))),
                   ],
                 ),
               )
              ],
            ),
          ),
        ],
      )
    );
  },
);
  }
}
